package grape.house.rest.building.form;
import grape.common.rest.form.BaseUpdateForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
 * <p>
 * 楼栋表
 * </p>
 *
 * @author yangwei
 * @since 2020-09-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="楼栋更新表单对象")
public class BuildingUpdateForm extends BaseUpdateForm {

    private static final long serialVersionUID = 1L;


    @NotEmpty(message="名称不能为空")
    @ApiModelProperty(value = "名称",required = true)
    private String name;

    @NotEmpty(message="名称别名不能为空")
    @ApiModelProperty(value = "名称别名",required = true)
    private String nameAlias;

    @ApiModelProperty(value = "经度")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    private String latitude;

    @ApiModelProperty(value = "地下车位数")
    private Integer belowGroundParkingSpaceNum;

    @ApiModelProperty(value = "始建于")
    private Long buildAt;

    @ApiModelProperty(value = "建成于")
    private Long builtAt;

    @ApiModelProperty(value = "开发商公司id")
    private String developerCompanyId;

    @ApiModelProperty(value = "物业公司id")
    private String propertyCompanyId;

    @NotEmpty(message="楼盘id不能为空")
    @ApiModelProperty(value = "楼盘id",required = true)
    private String estateId;

    @ApiModelProperty(value = "楼盘分期id")
    private String estatePhaseId;

    @NotNull(message="总层数不能为空")
    @ApiModelProperty(value = "总层数",required = true)
    private Integer floorNum;

    @ApiModelProperty(value = "单元数")
    private Integer unitNum;

    @ApiModelProperty(value = "总套数")
    private Integer roomNum;

    @ApiModelProperty(value = "预售许可证id")
    private String presaleEstateLicenceId;

}
